package com.zzt.spider.enums;

import lombok.Getter;

@Getter
public enum SpiderSourceEnum {
    FREEKANPIAN("freekanpian"),
    FREEKANPIANGC("freekanpianGC"),
    FREEKANPIANZF("freekanpianZF"),
    FREEKANPIANZW("freekanpianZW"),
    FREEKANPIANOM("freekanpianOM"),;

    private String from;

    private SpiderSourceEnum(String from) {
        this.from = from;
    }

    public static SpiderSourceEnum getByFrom(String from) {
        SpiderSourceEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            SpiderSourceEnum value = var1[var3];
            if (value.from.equals(from)) {
                return value;
            }
        }

        return null;
    }
}
